//
//  BindInfo.m
//  timelyRain
//
//  Created by Jiafei Wei on 2016/12/20.
//  Copyright © 2016年 Jiafei Wei. All rights reserved.
//

#import "BindInfo.h"

@implementation BindInfo
-(void)encodeWithCoder:(NSCoder *)aCoder{
    [aCoder encodeObject:self.watch_sn forKey:@"watch_sn"];
    [aCoder encodeObject:self.phone_number forKey:@"phone_number"];
    [aCoder encodeObject:self.watch_ease_userid forKey:@"watch_ease_userid"];
    [aCoder encodeObject:self.wifi_hot_spot_ssid forKey:@"wifi_hot_spot_ssid"];
    [aCoder encodeObject:self.datas forKey:@"datas"];
}
-(id)initWithCoder:(NSCoder *)aDecoder{
    if (self ==[super init]) {
        self.watch_sn = [aDecoder decodeObjectForKey:@"watch_sn"];
        self.phone_number = [aDecoder decodeObjectForKey:@"phone_number"];
        self.watch_ease_userid = [aDecoder decodeObjectForKey:@"watch_ease_userid"];
        self.wifi_hot_spot_ssid =[aDecoder decodeObjectForKey:@"wifi_hot_spot_ssid"];
        self.datas=[aDecoder decodeObjectForKey:@"datas"];
    }
    return self;
}
@end
